//
//  SMRotateLabel.h
//  lishiminOC
//
//  Created by p2p on 16/10/12.
//  Copyright © 2016年 p2p. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, UBFlashCtntSpeed) {
    UBFlashCtntSpeedVerySlow = -1,
    UBFlashCtntSpeedSlow,
    UBFlashCtntSpeedMild,
    UBFlashCtntSpeedFast
};

@interface SMRotateLabel : UIView

@property (nonatomic, strong) NSString *text;
@property (nonatomic, strong) UIFont *font;         // 默认:system(15)
@property (nonatomic, strong) UIColor *textColor;

@property (nonatomic, strong) NSAttributedString *attributedText;

@property (nonatomic, assign) UBFlashCtntSpeed speed;

@property(nonatomic)        NSTextAlignment    textAlignment;
// 循环滚动次数(为0时无限滚动)
@property (nonatomic, assign) NSUInteger repeatCount;

@property (nonatomic, assign) CGFloat leastInnerGap;

- (void)reloadView;

@end
